package com.kymatrix.kycarbon.xsmd.system.server.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.kymatrix.kycarbon.xsmd.system.server.model.entity.RoleEntity;
import com.kymatrix.kycarbon.xsmd.system.server.model.form.role.ListQueryRoleResp;
import com.kymatrix.kycarbon.xsmd.system.server.model.form.role.PageQueryRoleResp;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

@Mapper
@Component
public interface RoleMapper extends BaseMapper<RoleEntity> {

    Page<PageQueryRoleResp> pageQuery(Page<?> page, @Param("name") String name);

    List<ListQueryRoleResp> list(@Param("name") String name);

    List<RoleEntity> selectByIds(@Param("roleIdList") List<String> roleIdList);
}
